package com.media.pojo;

import com.media.common.enums.PushType;
import lombok.Data;

import java.io.Serializable;

@Data
public class CameraPojo implements Serializable {
    /**
     * 设备的id
     */
    private Long id;
    /**
     * 摄像头账号
     * admin
     */
    private String username;
    /**
     * 摄像头密码
     * 88888888
     */
    private String password;
    /**
     * 摄像头ip
     * 192.168.8.8
     */
    private String ip;
    /**
     * 摄像头通道
     * 34020000001320000001
     */
    private String channel;
    /**
     * 摄像头码流
     * main（主码流），sub（子码流）
     */
    private String stream;

    /**
     * 推流类型 rtmp / hls
     */
    private PushType pushType;

    /**
     * rtsp地址
     */
    private String rtsp;
    /**
     * rtmp地址
     * rtsp://admin:xhm123456@192.168.8.205:554/h264/ch34020000001320000001/main/av_stream
     */
    private String rtmp;
    /**
     * hls 地址
     * rtsp://admin:xhm123456@192.168.8.205:554/h264/ch34020000001320000001/main/av_stream
     */
    private String hls;
    /**
     * 打开时间
     * 2022-01-01 00:00:00
     */
    private String openTime;

    /**
     * 持续秒 (用于截取图片 , 视频)
     */
    private String time = "30";

    /**
     * 使用人数
     */
    private int count = 0;

    /**
     * token
     * fa1bef9f-1ab9-411b-8c32-832f90931456
     */
    private String token;

    /**
     * path 路径
     */
    private String path = "/home/";

}
